<template>
  <div @click="myAlart(name)">
    <h1>学生：</h1>
    <h2>姓名：{{name}}</h2>
    <h2>年龄:{{age}}</h2>
  </div>
</template>

<script>
import { mixin } from '../mixin'

export default {
    name: "MyStudent",
    data() {
        return {
            name:'张三',
            age:'19'
        }
    },
    mixins:[mixin]
}
</script>

<style>

</style>